How to find whether two lines intersect

visit shbcf.ru